<script setup>
// 定义props
defineProps({
  // 主标题
  title: {
    type: String
  },
  // 副标题
  subTitle: {
    type: String
  }
})
</script>

<template>
  <div class="home-panel">
    <div class="container">
      <div class="head">
        <!--主标题和副标题-->
        <h3>{{title}}<small>{{subTitle}}</small></h3>
      </div>
      <!--主体内容区域-->
      <!--预埋默认插槽 定制内容slot占位-->
      <slot></slot>
      <!--具名插槽-->
      <!--<slot name="pro"></slot>-->
    </div>
  </div>
</template>

<style lang="scss" scoped>
.home-panel{
  background-color: #fff;
  .head{
    padding-top: 50px;
    padding-bottom: 20px;
    display: flex;
    align-items: flex-end;
    h3{
      flex: 1;
      font-size: 32px;
      font-weight: normal;
      color: #333;
      margin-left: 6px;
      height: 35px;
      line-height: 35px;
    }
    small{
      font-size: 16px;
      color: #999;
      margin-left: 20px;
    }
  }
}
</style>